package oa.dao;

import java.util.Collection;

import oa.dao.base.BaseDao;
import oa.domain.system.Privilege;

public interface PrivilegeDao extends BaseDao<Privilege>{

	public Collection<Privilege> getPrivileges(Long rid);

	/**
	 * 根据用户的uid得到用户能访问的菜单树
	 * @param uid
	 * @param username
	 * @return
	 */
	public Collection<Privilege> getMenuitemsByUid(Long uid,String username);
	
	/**
	 * 根据用户的uid得到用户的功能权限
	 * @param uid
	 * @return
	 */
	public Collection<Privilege> getFunctionByUid(Long uid);
	
 }
